package com.lancoo.edu.platform.operation.backupRestore.domain.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhang.ws
 * @date 2024/6/22 15:02
 * @description 更新定时任务
 */
@Data
public class UpdateTaskBo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 任务ID
     */
    @NotBlank(message = "taskId不能为空")
    private String taskId;

    /**
     * 间隔
     */
    private Integer interval;

    /**
     * cron表达式
     */
    private String taskCron;

    /**
     * 任务类型
     */
    @NotNull(message = "taskType不能为空")
    private Integer taskType;

}
